username = 'long'
passwd = '123'
for i in range(3):
    user = input('please input your username: ')
    pwd = input('please input your paaswd: ')
    if user == username and pwd == passwd :
        print('login access')
        break
    elif i == 2:
        print('error 3 count !')
    else:
        print('your username or passwd error !')

# good